// SV: Nguyen Vab Hoa (A05290)
// program: Tinh luong thuc lanh cua mot nhan vien


#include"stdio.h"
#include"conio.h"
main()
{
	float luongCB,DA,HRA,TA,cacMucKhac,PF,IT,luongThucLanh;
	printf("\nHay nhap vao luong co ban: ");
	scanf("%f", &luongCB);
	DA=(12.0/100)*luongCB;
	printf("\n Hay nhap vao HRA: ");
	scanf("%f", &HRA);
	printf("\n Hay nhap vao TA: ");
	scanf("%f", &TA);
	printf("\n Hay nhap vao cac muc khac :");
	scanf("%f", &cacMucKhac);
	PF=(14.0/100)*luongCB;
	IT=(15.0/100)*luongCB;
		
	luongThucLanh=luongCB+DA+HRA+TA+cacMucKhac-(PF+IT);
	printf("\n Luong thuc lanh cua nhan vien la: %f", luongThucLanh);
	
	printf("\n luong co ban la:%f", luongCB);
	getch();
}
